<template>
  <div class="ZY">
    <el-container>
      <el-aside width="200px" height="100%">
        <el-col>
          <h5>修行选项</h5>
          <el-menu class="el-menu-vertical-demo" router>
            <el-menu-item index="/addRepices">
              <i class="el-icon-document-add"></i>
              <span slot="title">添加食谱</span>
            </el-menu-item>
            <el-menu-item index="/addFood">
              <i class="el-icon-document-add"></i>
              <span slot="title">添加食材</span>
            </el-menu-item>
          </el-menu>
        </el-col>
      </el-aside>
      <el-container>
        <el-header>健康修行</el-header>
        <el-main>
          <el-breadcrumb separator-class="el-icon-arrow-right">
            <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
            <el-breadcrumb-item>{{$route.name == undefined ? "" : $route.name}}</el-breadcrumb-item>
          </el-breadcrumb>
          <router-view />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
export default {
  data() {},
  methods: {},
};
</script>

<style>
.el-header,
.el-footer {
  background-color: #409eff;
  color: #fff;
  font-weight: bold;
  letter-spacing: 5px;
  text-align: center;
  line-height: 60px;
  font-size: 22px;
}

.el-aside {
  background-color: #fff;
  color: #333;
  text-align: center;
  line-height: 200px;
}

.el-main {
  background-color: #fff;
  color: #333;
  text-align: center;

}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
h3 {
  margin-left: 10%;
  height: 120px;
}
h5 {
  margin-top: -50px;
  color: #303133;
  border-bottom: 1px solid rgb(233, 233, 235);
  border-right: 1px solid rgb(233, 233, 235);
  height: 120px;
}
.el-menu {
  height: 750px;
  margin-top: -20px;
}
</style>